package Demo2;
class Base {
    int a = 10;
    public void methodA(int a) {
        this.a = a;
    }
}
class Child extends Base {
    public void methodA() {
        System.out.println("Child————A");
    }

    public void method() {

    }
}
public class test4 {
    public static void main(String[] args) {
        Child child = new Child();
        child.method();
    }
}
